package com.rockwell.robot2015.model.detectors;

import org.opencv.core.Point;

import com.rockwell.robot2015.model.ColorBlobInfo;
import com.rockwell.robot2015.model.OnColorBlobDetectListener;

public class MazeEntranceGuideDetector extends ObjectDetector {
	private Point m_LineCenter;
	private int m_width = 0;
	private int m_height = 0;

	public MazeEntranceGuideDetector(OnColorBlobDetectListener listener) {
		super(listener);
	}
	
	@Override
	public Point getDrift() {
		double driftX = m_LineCenter.x - m_width * TREASURE_CENTER_POSITION_X;
		double driftY = m_height * TREASURE_CENTER_POSITION_Y - m_LineCenter.y;
		
		return new Point(driftX, driftY);
	}

	@Override
	public void onDetect(boolean present, ColorBlobInfo info,
			int length, int width) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean detectLine() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Point[] getLine() {
		// TODO Auto-generated method stub
		return null;
	}

}
